import request from '@/utils/request'

export default {
  search(page, size, searchMap) {
    return request({
      url: `staff/list/search/${page}/${size}`,
      method: 'post',
      data: searchMap
    })
  },
  getById(id) {
    return request({
      url: `staff/${id}`,
      method: 'get',
    })
  },
  delete(id) {
    return request({
      url: `staff/${id}`,
      method: 'delete',
    })
  },
  addList(form) {
    return request({
      url: `/staff`,
      method: 'post',
      data: {
        form
      }
    })
  }
}